/**
 * 配置
 * */
package org.zmhhxl.sample3.oauth2.a.configure.properties;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * 自定义认证配置类
 *
 * @author vains
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "custom.cors")
public class CorsProperties{
   private List<String> allowedOrigins = List.of("http://127.0.0.1:4200");
   private List<String> allowedMethods = List.of("*");
   private List<String> allowedHeaders = List.of("*");
   private List<String> exposedHeaders;
   private Boolean allowCredentials = true;
}
